//
//  TouchView.m
//  miaopai
//
//  Created by Crow Zhang on 15/11/17.
//  Copyright © 2015年 Crow Zhang. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView

- (void)addMyTarget:(id)target action:(SEL)action
{
    self.target = target;
    self.action = action;
}

- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self.target performSelector:self.action withObject:self];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
